using System.Web.UI;

using QuickDev.Localization;

[assembly: TagPrefix( "QuickDev.ServerControls" , "QuickDev" )]
namespace QuickDev.ServerControls
{

    [ToolboxData( "<{0}:CheckBox ID=\"CheckBoxId\" runat=\"server\" />" )]
    public class CheckBox : System.Web.UI.WebControls.CheckBox
    {
        protected override void Render( HtmlTextWriter writer )
        {
            if ( !string.IsNullOrEmpty( this.ID ) && this.Text.Length == 0 )
            {
                this.Text = LocalizationUtility.GetText( this.ID );
            }
            base.Render( writer );
        }
    }
}
